package com.briup.corejava.day08.pojo;

public class Employee {
    private String id;
    private String name;
    // 全参空参构造器，getter setter
    public Employee(){}

    public Employee(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    // 特殊的方法 doWork
    public void doWork(){
        System.out.println("员工开始工作");
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
